@extends('admin.layout')
@section('title',$title)
@section('content')
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                关键字列表
                <small></small>
            </h1>
           
        </section>
        @if(session('info'))
        <div class="alert alert-danger alert-dismissable">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                    <h4><i class="icon fa fa-ban"></i> 注意!</h4>
              <p>{{session('info')}}</p>         
        </div>
        @endif
        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title"></h3>

                        </div><!-- /.box-header -->
                        <div class="box-body">
                        
                        
                            <table id="example1" class="table table-bordered table-striped">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    
                                    <th>关键字</th>
                                    <th>内容</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($data as $user)
                            	<tr>
                                    <td>{{$user -> id}}</td>
                                    <td>{{$user -> name}}</td>
                            		
                            		<td><a href="{{$user -> keyword}}">{{$user -> keyword}}</a></td>
                            		<td><a href="/admin/word/edit/{{$user -> id}}">编辑</a> <a href="/admin/word/delete/{{$user -> id}}">删除</a></td>
                            	</tr>
                                @endforeach
                                </tbody>
                            </table>
                           {{$data -> appends($request) -> render()}}
                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                </div><!-- /.col -->
            </div><!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
@endsection